a{
    text-decoration: none;
    color: #fff;
    a:hover{
        color: rgb(197, 196, 196);
    }
}

.top-bar-wrapper{
    width: 100%;
background-color:#000;
}

.top-bar{
    max-width: 1200px;
    margin: 0 auto;
    height: 48px;
    background-color: #000;
    padding: 0 41px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.left-menu{
    &:active{
        // 显示菜单
        .nav{
            display: block;
        }
    }

    // position: relative;
// 设置菜单
.nav{
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    padding-top: 50px;

    background-color: #000;

    li{
        width: 80%;
        margin: 0 auto;
        border-bottom: 1px solid #757474;
        a{
            line-height: 44px;
            font-size: 14px;
           
        }

        &:last-child a{
            display: inline-block;
            margin-right: 6px;
        }

        span{
            color: #fff;
            font-size: 14px;
        }
    }
}

.menu-icon{
       
    width: 18px;
    height: 48px;
    position: relative;
//导航线
    li{
        width: 18px;
        height: 1px;
        background-color: #fff;
        position: absolute;
        // 旋转的源点
        transform-origin: left center;
        transition: 0.5s;
    }

    li:nth-child(1){
        top: 18px;
     
    }
    li:nth-child(2){
        top: 23px;
       
    }
    li:nth-child(3){
        bottom: 18px;
     
    }
    //移入后的效果，正常用js实现
   &:active{
//显示隐藏菜单

        li:nth-child(1){
            top: 18px;
            // 向下转转
            transform: rotateZ(40deg);
        }
        li:nth-child(2){
            top: 23px;
            //隐藏
            opacity: 0;
        }
        li:nth-child(3){
            bottom: 18px;
            transform: rotateZ(-40deg);
        }
    }
}
}

@media only screen{
// 断点768
    @media (min-width:768px) {
        .left-menu{
            order: 2;
            flex: auto;

            .menu-icon{
                display: none;
            }
            // 隐藏菜单
            .nav{
                display: flex;
                // 关闭定位
                position: static;
                padding:0;
                justify-content: space-around;

               li{
                   width: auto;
                   border-bottom: none;

                   a{
                       line-height: 48px;
                   }
                   span{
                       display: none;
                   }
               }
            }
        }
        .logo{
            order: 1;
        
        }
        .user-info{
            order: 3;
        }

    }
}


